<?php
include('../incsession.php');
include("../db_connection.php");
mysql_query("SET NAMES 'utf8'", $orcp_con);

$selected_type = $_POST['q_type'];

print $selected_type;

if($selected_type == 'open_question'){
?>
<script language="JavaScript"> 
location.replace('open_question1.php'); 
</script>
<?php
}
else if($selected_type == 'multiple_choice'){
?>
<script language="JavaScript"> 
location.replace('multiple_choice1.php'); 
</script>

<?php
}	
else{
	echo 'error';
}
?>